import request from '@/utils/request'

// 查询用章附件列表
export function listSealfile(query) {
  return request({
    url: '/Seal/sealfile/list',
    method: 'get',
    params: query
  })
}

// 查询用章附件详细
export function getSealfile(fileId) {
  return request({
    url: '/Seal/sealfile/' + fileId,
    method: 'get'
  })
}

// 新增用章附件
export function addSealfile(data) {
  return request({
    url: '/Seal/sealfile',
    method: 'post',
    data: data
  })
}

// 修改用章附件
export function updateSealfile(data) {
  return request({
    url: '/Seal/sealfile',
    method: 'put',
    data: data
  })
}

// 删除用章附件
export function delSealfile(fileId) {
  return request({
    url: '/Seal/sealfile/' + fileId,
    method: 'delete'
  })
}

export function getSealcheckfile(mid) {
  return request({
    url: '/system/wecom/getyzcheckfile/' + mid,
    method: 'get'
  })
}